//
//  Status.swift
//  SHWeibo2.0
//
//  Created by 黄礼潮 on 16/2/27.
//  Copyright © 2016年 黄礼潮. All rights reserved.
//

import UIKit
import YYModel

class Status: NSObject {
    
    //微博ID
    var id: Int64 = 0
    //微博的信息内容
    var text:String?
    //微博的创建时间
    var created_at:String?
    //微博来源
    var source:String?
    
    var user: User?
    
    //	被转发的原微博信息字段
    var retweeted_status: Status?
    
    //微博配图
    var pic_urls:[StatusPicture]?
   
    
    override var description: String {
        
        let keys = ["id","text","created_at","source","user","pic_urls","retweeted_status"]
        
        return dictionaryWithValuesForKeys(keys).description
        
    }
    
    //如果有自定义类的话，字典转模型无法确认数组[容器]中内部元素的准确类型，因此无法转换
    
    class func modelContainerPropertyGenericClass() -> [String: AnyObject]{
    
     // return ["pic_urls":"SHWeibo.StatusPicture"]
        return ["pic_urls": StatusPicture.self]
    }
}
